home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-03 | 1.9 KB | 58 lines | [TEXT/CWIE] |
- #if justacomment
-
- 3.0
- ---
-
- Changed from text bottleneck approach to event filter approach,
- and quit trying to be compatible with System 6.
-
-
- 2.1
- ---
-
- In Gray_frame_draw_proc and Dim_text_proc, I had been using a string
- literal for the gray pattern. This has a couple of disadvantages: One,
- I have been told that it can cause odd-address errors when used on a
- 68000 Mac. Two, CodeWarrior does not use PC-relative string literals,
- so in a code resource, one would have to set up the A4 register.
-
- In Dim_text_proc, save and restore the text mode. This did not seem to
- be necessary in general, but I have a report that on an SE, failure to
- restore the text mode caused other items to be improperly grayed.
-
- Added a Set_dim_data macro, to further encapsulate use of the refCon.
-
-
- 2.0
- ---
-
- The linked list now contains only items that are dimmed, as opposed to
- items that could be dimmed.
-
- The routines New_dimmables and Dispose_dimmables have been eliminated.
-
- When an editable item is dim, draw its frame in true gray.
-
-
- v. 1.1 changes:
- ---------------
-
- In the bottleneck proc, save and restore the pen state. This is for
- compatibility with custom controls.
-
- In the bottleneck proc, reset the clipping region when calling FrameRect.
- Previously, if the editText item contained more than could be displayed,
- then was dimmed, and then erased and updated, the frame was not drawn.
-
- In Dim_text, after turning a dimmed item back to an editable text item,
- call SelIText( dp, item, 0, 0 );. This was to fix this situation: Say
- you typed more into an edit field that could be displayed. When the
- field was dimmed, part would disappear, because of the fact that static
- text is displayed with a different destRect. Then when the item was
- undimmed, the text that had disappeared did not come back. Now, with
- the change, the text still disappears, but comes back.
-
- Modified for universal headers.
-
- #endif
-